<template>
  <div class="app-container">
    <el-container>
      <el-aside width="220px">
        <el-menu 
          :router="true"
          background-color="#304156"
          text-color="#fff"
          active-text-color="#ffd04b">
          <el-menu-item index="/class">
            <el-icon><icon-menu /></el-icon>
            <span>班级管理</span>
          </el-menu-item>
          <el-menu-item index="/course">
            <el-icon><icon-menu /></el-icon>
            <span>课程管理</span>
          </el-menu-item>
          <el-menu-item index="/statistics">
            <el-icon><icon-menu /></el-icon>
            <span>实验上交统计</span>
          </el-menu-item>
        </el-menu>
      </el-aside>
      <el-container>
        <el-header>实验报告统计分析工具</el-header>
        <el-main>
          <router-view></router-view>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script>
import { Menu as IconMenu } from '@element-plus/icons-vue'

export default {
  name: 'App',
  components: {
    IconMenu
  }
}
</script>

<style>
.app-container {
  height: 100vh;
  width: 100%;
}
.el-header {
  background-color: #b3c0d1;
  color: #333;
  line-height: 60px;
  text-align: center;
  font-size: 22px;
  font-weight: bold;
}
.el-aside {
  background-color: #304156;
  color: #333;
}
.el-main {
  background-color: #f0f2f5;
  color: #333;
  padding: 20px;
}
</style>
